package com.imooc.sell.VO.wang.OutParamVO;

import com.imooc.sell.utils.wang.DateFormatUtils;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class OrderSaveOutVO extends AbstractOut {
    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单创建时间
     */
    private String createTime;

    public void setCreateTime(Date createTime) {
        this.createTime = DateFormatUtils.format("yyyy-MM-dd HH:mm:ss", createTime);
    }
}
